package com.example.diandian.service.edu.feign;

import com.example.diandian.service.edu.entity.comment.UcenterMemberPay;
import com.example.diandian.service.edu.feign.callback.OssFileServiceCallBack;
import com.example.diandian.service.edu.feign.callback.UcenterServiceCallBack;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@Component
@FeignClient(value = "service-ucenter", fallback = UcenterServiceCallBack.class)
public interface UcenterService {

    //根据用户id获取用户信息
    @GetMapping("/api/ucenter/member/getInfoUc/{memberId}")
    public UcenterMemberPay getUcenterPay(@PathVariable("memberId") String memberId);

}
